﻿@using WebEntities;
@using WebsiteUI.Extensions;

@{
    ViewBag.Title = "政企服务_城市垃圾处理网";
    ViewBag.ClassHead = "head_bg6";
}
<div class="main_l">
    <div class="pageTitle">
        <i class="bgPic fl"></i>
        <div class="fl">
            政企服务</div>
    </div>
    <div class="ad_show">
         @Html.Action("ADScroll", "PublicPartialView")
    </div>
    <div class="contentBox">
        <div class="con_bar">
            <span class="fl tit">工程服务</span> <span class="fr"><a href="/list/index/@((int)ViewBag.EngServiceID)">更多>></a></span>
            <div class="cls">
            </div>
        </div>
        <div class="con_Main">
            <img src="../../Resource/images/test5.png" width="240px" height="70px" alt="工程服务" />
            @{
                List<WI_News> list1 = ViewBag.EngServList as List<WI_News>;
                WI_News news1 = list1.FirstOrDefault();
                if (news1 != null)
                {
                    <div class="gray2 main-s-s">
                @{
                    string htmlDescr = Server.HtmlDecode(news1.Description);
                    string plainDescr = HtmlWorkshop.StripHtml(htmlDescr ?? string.Empty);
                }
                        <span>@Html.Raw(HtmlWorkshop.CutTitle(plainDescr ?? string.Empty, 30))</span><a class="linkColor" href="/detail/index/@news1.NewsID" title="@news1.NewsTitle" target="_blank">[详细]</a>
                    </div>
                }
            }
            <div class="cls"></div>
        </div>
    </div>
    <div class="contentBox">
        <div class="con_bar">
            <span class="fl tit">行业监管咨询</span> <span class="fr"><a href="/list/index/@((int)ViewBag.IndustryQueryID)">更多>></a></span>
            <div class="cls"></div>
        </div>
        <div class="con_Main">
            <ul>
            @{
                List<WI_News> list2 = ViewBag.IndustryQueryList as List<WI_News>;
                foreach (var news in list2)
                {
                    string mark = (news.Important) == 2 ? "red" : "";
                    <li>· <a href="/detail/index/@news.NewsID" target="_blank" title="@news.NewsTitle" class="@mark">@HtmlWorkshop.CutTitle(news.NewsTitle ?? string.Empty, 16)</a></li>
                }
            }
            </ul>
        </div>
    </div>
</div>
<div class="main_m">
    <div class="contentBox">
        <div class="tab">
            <ul>
                <li class="current"><a href="/list/product/">产品信息</a></li>
                <li><a href="/list/view/@ViewBag.SampleEngID">示范工程</a></li>
                <li><a href="/list/view/@ViewBag.QuickFixID">应急抢修咨询</a></li>
            </ul>
            @*<span><a href="#">更多&gt;&gt;</a></span>*@
        </div>
        <div class="tab-content">
        @{
            List<PP_Product> prodlist = ViewBag.ProdList as List<PP_Product>;
            foreach (var prod in prodlist)
            {
                <dl class="imglist-s">
                    <dt><a href="/detail/product/@prod.ProductID" title="@prod.ProductName" target="_blank">
                        <img src="@(@prod.ProductCover ?? "/Resource/images/test4.png")" width="85px" height="55px" alt="@prod.ProductName" /></a>
                    </dt>
                    <dd>
                        <h3><a href="/detail/product/@prod.ProductID" title="@prod.ProductName" target="_blank"><strong>@prod.ProductName</strong></a></h3>
                        类别：@prod.ProductType
                        @{
                            string htmlDescr = Server.HtmlDecode(prod.Description);
                            string plainDescr = HtmlWorkshop.StripHtml(htmlDescr ?? string.Empty);
                        }
                        <p>描述：@Html.Raw(HtmlWorkshop.CutTitle(plainDescr, 25))</p>
                    </dd>
                </dl>
            }
        }
            <div class="cls"></div>
        </div>
        <div class="tab-content hidden">
        @{
            List<WI_News> list3 = ViewBag.SampleEngList as List<WI_News>;
            foreach (var news in list3)
            {
                <dl class="imglist-s">
                    <dt><a href="/detail/index/@news.NewsID" title="@news.NewsTitle" target="_blank">
                        <img src="@(@news.NewsCover ?? "/Resource/images/test4.png")" width="85px" height="55px" alt="@news.NewsTitle" /></a>
                    </dt>
                    <dd>
                        <h3><a href="/detail/index/@news.NewsID" title="@news.NewsTitle" target="_blank"><strong>@news.NewsTitle</strong></a></h3>
                        @{
                            string htmlDescr = Server.HtmlDecode(news.Description);
                            string plainDescr = HtmlWorkshop.StripHtml(htmlDescr ?? string.Empty);
                        }
                        <p>描述：@Html.Raw(HtmlWorkshop.CutTitle(plainDescr, 55))</p>
                    </dd>
                </dl>
            }
        }
            <div class="cls"></div>
        </div>
        <div class="tab-content hidden">
        @{
            List<WI_News> list4 = ViewBag.QuickFixList as List<WI_News>;
            foreach (var news in list4)
            {
                <dl class="imglist-s">
                    <dt><a href="/detail/index/@news.NewsID" title="@news.NewsTitle" target="_blank">
                        <img src="@(@news.NewsCover ?? "/Resource/images/test4.png")" width="85px" height="55px" alt="@news.NewsTitle" /></a>
                    </dt>
                    <dd>
                        <h3><a href="/detail/index/@news.NewsID" title="@news.NewsTitle" target="_blank"><strong>@news.NewsTitle</strong></a></h3>
                        @{
                            string htmlDescr = Server.HtmlDecode(news.Description);
                            string plainDescr = HtmlWorkshop.StripHtml(htmlDescr ?? string.Empty);
                        }
                        <p>描述：@Html.Raw(HtmlWorkshop.CutTitle(plainDescr, 55))</p>
                    </dd>
                </dl>
            }
        }
            <div class="cls"></div>
        </div>
    </div>
    <div class="contentBox">
        <div class="tab">
            <ul>
                <li class="current"><a href="/list/index/@ViewBag.EnvirmentID">环境评价</a></li>
                <li><a href="/list/index/@ViewBag.PlanQueryID">规划咨询</a></li>
            </ul>
            @*<span><a href="#">更多&gt;&gt;</a></span>*@
        </div>
        <div class="tab-content">
            <ul class="wz-list">
            @{
                List<WI_News> list5 = ViewBag.EnvirmentList as List<WI_News>;
                foreach (var news in list5)
                {
                    <li>
                        <span class="fl">· <a href="/detail/index/@news.NewsID" target="_blank" title="@news.NewsTitle">@HtmlWorkshop.CutTitle(news.NewsTitle ?? string.Empty, 20)</a></span>
                        <span class="gray fr">@((news.PubTime ?? news.CreateTime).ToString("yyyy-MM-dd"))</span>
                        <div class="cls"></div>
                    </li>  
                }
            }
                
            </ul>

        </div>
        <div class="tab-content hidden">
            <ul class="wz-list">
            @{
                List<WI_News> list6 = ViewBag.PlanQueryList as List<WI_News>;
                foreach (var news in list6)
                {
                    <li>
                        <span class="fl">· <a href="/detail/index/@news.NewsID" target="_blank" title="@news.NewsTitle">@HtmlWorkshop.CutTitle(news.NewsTitle ?? string.Empty, 20)</a></span>
                        <span class="gray fr">@((news.PubTime ?? news.CreateTime).ToString("yyyy-MM-dd"))</span>
                        <div class="cls"></div>
                    </li>  
                }
            }
            </ul>
        </div>
    </div>
</div>
<div class="main_r">
    <div class="contentBox">
        <div class="con_bar">
            <span class="fl tit">志愿者服务队</span><span class="fr"><a href="/list/index/@((int)ViewBag.VolunteerID)">更多>></a></span>
            <div class="cls">
            </div>
        </div>
        <div class="con_Main_2">
            <ul>
            @{
                List<WI_News> list7 = ViewBag.VolunteerList as List<WI_News>;
                foreach (var news in list7)
                {
                    <li><a href="/detail/index/@news.NewsID" target="_blank" title="">@HtmlWorkshop.CutTitle(news.NewsTitle ?? string.Empty, 20)</a> </li>  
                }
            }
            </ul>
        </div>
    </div>
     <div class="contentBox">
        <div class="con_bar">
            <span class="fl tit">法律援助</span><span class="fr"><a href="/list/index/@((int)ViewBag.LawHelpID)">更多>></a></span>
            <div class="cls">
            </div>
        </div>
        <div class="con_Main_2">
            <ul>
            @{
                List<WI_News> list8 = ViewBag.LawHelpList as List<WI_News>;
                foreach (var news in list8)
                {
                    <li><a href="/detail/index/@news.NewsID" target="_blank" title="">@HtmlWorkshop.CutTitle(news.NewsTitle ?? string.Empty, 20)</a> </li>  
                }
            }
            </ul>
        </div>
    </div>
</div>
<div class="cls">
</div>
<div class="ad_area" align="center">
    <img src="../../Resource/images/ad_test.png" width="950px" height="123px" />
</div>
